package com.hnuc.ch;

import java.io.Serializable;

import org.dom4j.Element;
import org.dom4j.Node;

public class Item implements Serializable{
        private String title;
        private String link;
        private String des;
        private String pubTime;
        public Item() {
        }
        public Item(Node itemNode) {
               title = ((Element) itemNode.selectNodes("title").get(0)).getText();
               link = ((Element) itemNode.selectNodes("link").get(0)).getText();
               des = ((Element) itemNode.selectNodes("description").get(0)).getText();
               pubTime = ((Element) itemNode.selectNodes("pubDate").get(0)).getText();
        }
        public String getTitle() {
               return title;
        }
        public void setTitle(String title) {
               this.title = title;
        }
        public String getLink() {
               return link;
        }
        public void setLink(String link) {
               this.link = link;
        }
        public String getPubTime() {
               return pubTime;
        }
       
        public void setPubTime(String pubTime) {
               this.pubTime = pubTime;
        }
       
        public String getDes(){
               return des ;
        }
        public void setDes(String des){
               this.des = des ;
        }
}